<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<#import "/page.ftl" as page />
<link rel="stylesheet" type="text/css" href="/css/work_report.css">
<link rel="stylesheet" type="text/css" href="/css/work_attend.css">
<script type="text/javascript" src="/js/work_attend.js"></script>
	<div class="content-wrapper check">
		<#include "/head.ftl"/>
		<div class="content">
			<div class="main-hd">
				<div class="toolkit-list">
					<div class="toolkit-item">
						<div class="date">
							<span class="control-label">统计时间</span>
							<div style="float: left;margin-top: 2px;">
								<#if ths?exists>
									<#if ths=="1">
										<a class="pxybtn att" id="this">本月</a> <a class="pxybtn" id="upper">上月</a>
									<#else>
										<a class="pxybtn" id="this">本月</a> <a class="pxybtn att" id="upper">上月</a>
									</#if>
									<#else>
									<a class="pxybtn att" id="this">本月</a> <a class="pxybtn" id="upper">上月</a>
								</#if>
							</div>
							<input id="start" class="start-time" type="text" value="${start?string('yyyy-MM-dd')}"
								onchange="sdffe()"
								onfocus="WdatePicker(
								{onpicked:function(){  },
									maxDate:'#F{$dp.$D(\'end\')}'})" />-
							<input id="end" class="end-time" type="text" value="${end?string('yyyy-MM-dd')}"
								onchange="sdffe()"
								onfocus="WdatePicker(
								{onpicked:function(){  },
									minDate:'#F{$dp.$D(\'start\')}'})" />
						</div>
					</div>
					<div class="tab-tool">
					<select class="dept">
						<option value="">所有部门</option>
						<#list depts as d>
							<#if RequestParameters.did?? && RequestParameters.did!="" && RequestParameters.did?number==d.id>
								<option value="${d.id}" selected="selected">${d.name}</option>
							<#else>
								<option value="${d.id}">${d.name}</option>
							</#if>
						</#list>
					</select>
					<input class="key" type="text" placeholder="按姓名查找...">
					<button class="search-btn">
						<i class="iconfont icon-search"></i>
					</button>
				</div>
				</div>
			</div>
			<div class="w-table">
				<table class="check-table">
					<tr>
						<th rowspan="2">姓名</th>
						<th colspan="3">签到情况</th>
						<th colspan="3">签退情况</th>
						<th rowspan="2">请假情况</th>
						<th rowspan="2">外勤情况</th>
						<th rowspan="2"></th>
					</tr>
					<tr>
						<th>签到次数</th>
						<th>迟到次数</th>
						<th>本月还需签到</th>
						<th>签退次数</th>
						<th>早退次数</th>
						<th>本月还需签退</th>
					</tr>
					<#list check as c>
						<tr>
							<td>${c.name}</td>
							<td>${c.szon}</td>
							<td>${c.late}</td>
							<td>${c.si}</td>
							<td>${c.zongt}</td>
							<td>${c.leaveEarly}</td>
							<td>${c.tuis}</td>
							<td>${c.jia}</td>
							<td>0</td>
							<td></td>
						</tr>
					</#list>
				</table>
			</div>
			<@page.page url=requestURI pager=users/>
		</div>
	</div>
</body>
</html>